<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <div th:include="back/common/cssjs :: main"></div>

    <div class="container">
        <div class="mt-3">
            <h3>修改商品</h3>
            <form action="edit_do" method="post">
<!--                ID：<span th:text="${Product.id}"></span>-->
                <input th:value="${Product.id}" name="id" type="hidden">

                <div class="form-group">
                    <label for="name">商品名</label>
                    <input name="name" id="name" th:value="${Product.name}" type="text" class="form-control">
                </div>
                <div class="form-group">
                    <label for="price">价格</label>
                    <input name="price" id="price" th:value="${Product.price}" type="text" class="form-control">
                </div>
                <input type="submit" class="btn btn-success">
            </form>
        </div>
    </div>
</body>
</html>